package com.yili.oa.models;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FtBetRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FtBetRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcIsNull() {
            addCriterion("create_time_utc is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcIsNotNull() {
            addCriterion("create_time_utc is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcEqualTo(Long value) {
            addCriterion("create_time_utc =", value, "createTimeUtc");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcNotEqualTo(Long value) {
            addCriterion("create_time_utc <>", value, "createTimeUtc");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcGreaterThan(Long value) {
            addCriterion("create_time_utc >", value, "createTimeUtc");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcGreaterThanOrEqualTo(Long value) {
            addCriterion("create_time_utc >=", value, "createTimeUtc");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcLessThan(Long value) {
            addCriterion("create_time_utc <", value, "createTimeUtc");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcLessThanOrEqualTo(Long value) {
            addCriterion("create_time_utc <=", value, "createTimeUtc");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcIn(List<Long> values) {
            addCriterion("create_time_utc in", values, "createTimeUtc");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcNotIn(List<Long> values) {
            addCriterion("create_time_utc not in", values, "createTimeUtc");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcBetween(Long value1, Long value2) {
            addCriterion("create_time_utc between", value1, value2, "createTimeUtc");
            return (Criteria) this;
        }

        public Criteria andCreateTimeUtcNotBetween(Long value1, Long value2) {
            addCriterion("create_time_utc not between", value1, value2, "createTimeUtc");
            return (Criteria) this;
        }

        public Criteria andBetNoIsNull() {
            addCriterion("bet_no is null");
            return (Criteria) this;
        }

        public Criteria andBetNoIsNotNull() {
            addCriterion("bet_no is not null");
            return (Criteria) this;
        }

        public Criteria andBetNoEqualTo(String value) {
            addCriterion("bet_no =", value, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetNoNotEqualTo(String value) {
            addCriterion("bet_no <>", value, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetNoGreaterThan(String value) {
            addCriterion("bet_no >", value, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetNoGreaterThanOrEqualTo(String value) {
            addCriterion("bet_no >=", value, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetNoLessThan(String value) {
            addCriterion("bet_no <", value, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetNoLessThanOrEqualTo(String value) {
            addCriterion("bet_no <=", value, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetNoLike(String value) {
            addCriterion("bet_no like", value, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetNoNotLike(String value) {
            addCriterion("bet_no not like", value, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetNoIn(List<String> values) {
            addCriterion("bet_no in", values, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetNoNotIn(List<String> values) {
            addCriterion("bet_no not in", values, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetNoBetween(String value1, String value2) {
            addCriterion("bet_no between", value1, value2, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetNoNotBetween(String value1, String value2) {
            addCriterion("bet_no not between", value1, value2, "betNo");
            return (Criteria) this;
        }

        public Criteria andBetAmountIsNull() {
            addCriterion("bet_amount is null");
            return (Criteria) this;
        }

        public Criteria andBetAmountIsNotNull() {
            addCriterion("bet_amount is not null");
            return (Criteria) this;
        }

        public Criteria andBetAmountEqualTo(BigDecimal value) {
            addCriterion("bet_amount =", value, "betAmount");
            return (Criteria) this;
        }

        public Criteria andBetAmountNotEqualTo(BigDecimal value) {
            addCriterion("bet_amount <>", value, "betAmount");
            return (Criteria) this;
        }

        public Criteria andBetAmountGreaterThan(BigDecimal value) {
            addCriterion("bet_amount >", value, "betAmount");
            return (Criteria) this;
        }

        public Criteria andBetAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("bet_amount >=", value, "betAmount");
            return (Criteria) this;
        }

        public Criteria andBetAmountLessThan(BigDecimal value) {
            addCriterion("bet_amount <", value, "betAmount");
            return (Criteria) this;
        }

        public Criteria andBetAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("bet_amount <=", value, "betAmount");
            return (Criteria) this;
        }

        public Criteria andBetAmountIn(List<BigDecimal> values) {
            addCriterion("bet_amount in", values, "betAmount");
            return (Criteria) this;
        }

        public Criteria andBetAmountNotIn(List<BigDecimal> values) {
            addCriterion("bet_amount not in", values, "betAmount");
            return (Criteria) this;
        }

        public Criteria andBetAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bet_amount between", value1, value2, "betAmount");
            return (Criteria) this;
        }

        public Criteria andBetAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bet_amount not between", value1, value2, "betAmount");
            return (Criteria) this;
        }

        public Criteria andPieAwardedIsNull() {
            addCriterion("pie_awarded is null");
            return (Criteria) this;
        }

        public Criteria andPieAwardedIsNotNull() {
            addCriterion("pie_awarded is not null");
            return (Criteria) this;
        }

        public Criteria andPieAwardedEqualTo(BigDecimal value) {
            addCriterion("pie_awarded =", value, "pieAwarded");
            return (Criteria) this;
        }

        public Criteria andPieAwardedNotEqualTo(BigDecimal value) {
            addCriterion("pie_awarded <>", value, "pieAwarded");
            return (Criteria) this;
        }

        public Criteria andPieAwardedGreaterThan(BigDecimal value) {
            addCriterion("pie_awarded >", value, "pieAwarded");
            return (Criteria) this;
        }

        public Criteria andPieAwardedGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pie_awarded >=", value, "pieAwarded");
            return (Criteria) this;
        }

        public Criteria andPieAwardedLessThan(BigDecimal value) {
            addCriterion("pie_awarded <", value, "pieAwarded");
            return (Criteria) this;
        }

        public Criteria andPieAwardedLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pie_awarded <=", value, "pieAwarded");
            return (Criteria) this;
        }

        public Criteria andPieAwardedIn(List<BigDecimal> values) {
            addCriterion("pie_awarded in", values, "pieAwarded");
            return (Criteria) this;
        }

        public Criteria andPieAwardedNotIn(List<BigDecimal> values) {
            addCriterion("pie_awarded not in", values, "pieAwarded");
            return (Criteria) this;
        }

        public Criteria andPieAwardedBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pie_awarded between", value1, value2, "pieAwarded");
            return (Criteria) this;
        }

        public Criteria andPieAwardedNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pie_awarded not between", value1, value2, "pieAwarded");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcIsNull() {
            addCriterion("payout_time_utc is null");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcIsNotNull() {
            addCriterion("payout_time_utc is not null");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcEqualTo(Long value) {
            addCriterion("payout_time_utc =", value, "payoutTimeUtc");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcNotEqualTo(Long value) {
            addCriterion("payout_time_utc <>", value, "payoutTimeUtc");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcGreaterThan(Long value) {
            addCriterion("payout_time_utc >", value, "payoutTimeUtc");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcGreaterThanOrEqualTo(Long value) {
            addCriterion("payout_time_utc >=", value, "payoutTimeUtc");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcLessThan(Long value) {
            addCriterion("payout_time_utc <", value, "payoutTimeUtc");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcLessThanOrEqualTo(Long value) {
            addCriterion("payout_time_utc <=", value, "payoutTimeUtc");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcIn(List<Long> values) {
            addCriterion("payout_time_utc in", values, "payoutTimeUtc");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcNotIn(List<Long> values) {
            addCriterion("payout_time_utc not in", values, "payoutTimeUtc");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcBetween(Long value1, Long value2) {
            addCriterion("payout_time_utc between", value1, value2, "payoutTimeUtc");
            return (Criteria) this;
        }

        public Criteria andPayoutTimeUtcNotBetween(Long value1, Long value2) {
            addCriterion("payout_time_utc not between", value1, value2, "payoutTimeUtc");
            return (Criteria) this;
        }

        public Criteria andGameKindIsNull() {
            addCriterion("game_kind is null");
            return (Criteria) this;
        }

        public Criteria andGameKindIsNotNull() {
            addCriterion("game_kind is not null");
            return (Criteria) this;
        }

        public Criteria andGameKindEqualTo(Integer value) {
            addCriterion("game_kind =", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindNotEqualTo(Integer value) {
            addCriterion("game_kind <>", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindGreaterThan(Integer value) {
            addCriterion("game_kind >", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindGreaterThanOrEqualTo(Integer value) {
            addCriterion("game_kind >=", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindLessThan(Integer value) {
            addCriterion("game_kind <", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindLessThanOrEqualTo(Integer value) {
            addCriterion("game_kind <=", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindIn(List<Integer> values) {
            addCriterion("game_kind in", values, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindNotIn(List<Integer> values) {
            addCriterion("game_kind not in", values, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindBetween(Integer value1, Integer value2) {
            addCriterion("game_kind between", value1, value2, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindNotBetween(Integer value1, Integer value2) {
            addCriterion("game_kind not between", value1, value2, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGamePlatformIsNull() {
            addCriterion("game_platform is null");
            return (Criteria) this;
        }

        public Criteria andGamePlatformIsNotNull() {
            addCriterion("game_platform is not null");
            return (Criteria) this;
        }

        public Criteria andGamePlatformEqualTo(Integer value) {
            addCriterion("game_platform =", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformNotEqualTo(Integer value) {
            addCriterion("game_platform <>", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformGreaterThan(Integer value) {
            addCriterion("game_platform >", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformGreaterThanOrEqualTo(Integer value) {
            addCriterion("game_platform >=", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformLessThan(Integer value) {
            addCriterion("game_platform <", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformLessThanOrEqualTo(Integer value) {
            addCriterion("game_platform <=", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformIn(List<Integer> values) {
            addCriterion("game_platform in", values, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformNotIn(List<Integer> values) {
            addCriterion("game_platform not in", values, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformBetween(Integer value1, Integer value2) {
            addCriterion("game_platform between", value1, value2, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformNotBetween(Integer value1, Integer value2) {
            addCriterion("game_platform not between", value1, value2, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGameIdIsNull() {
            addCriterion("game_id is null");
            return (Criteria) this;
        }

        public Criteria andGameIdIsNotNull() {
            addCriterion("game_id is not null");
            return (Criteria) this;
        }

        public Criteria andGameIdEqualTo(Integer value) {
            addCriterion("game_id =", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotEqualTo(Integer value) {
            addCriterion("game_id <>", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdGreaterThan(Integer value) {
            addCriterion("game_id >", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("game_id >=", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdLessThan(Integer value) {
            addCriterion("game_id <", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdLessThanOrEqualTo(Integer value) {
            addCriterion("game_id <=", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdIn(List<Integer> values) {
            addCriterion("game_id in", values, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotIn(List<Integer> values) {
            addCriterion("game_id not in", values, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdBetween(Integer value1, Integer value2) {
            addCriterion("game_id between", value1, value2, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotBetween(Integer value1, Integer value2) {
            addCriterion("game_id not between", value1, value2, "gameId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andXimaTimeIsNull() {
            addCriterion("xima_time is null");
            return (Criteria) this;
        }

        public Criteria andXimaTimeIsNotNull() {
            addCriterion("xima_time is not null");
            return (Criteria) this;
        }

        public Criteria andXimaTimeEqualTo(Date value) {
            addCriterion("xima_time =", value, "ximaTime");
            return (Criteria) this;
        }

        public Criteria andXimaTimeNotEqualTo(Date value) {
            addCriterion("xima_time <>", value, "ximaTime");
            return (Criteria) this;
        }

        public Criteria andXimaTimeGreaterThan(Date value) {
            addCriterion("xima_time >", value, "ximaTime");
            return (Criteria) this;
        }

        public Criteria andXimaTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("xima_time >=", value, "ximaTime");
            return (Criteria) this;
        }

        public Criteria andXimaTimeLessThan(Date value) {
            addCriterion("xima_time <", value, "ximaTime");
            return (Criteria) this;
        }

        public Criteria andXimaTimeLessThanOrEqualTo(Date value) {
            addCriterion("xima_time <=", value, "ximaTime");
            return (Criteria) this;
        }

        public Criteria andXimaTimeIn(List<Date> values) {
            addCriterion("xima_time in", values, "ximaTime");
            return (Criteria) this;
        }

        public Criteria andXimaTimeNotIn(List<Date> values) {
            addCriterion("xima_time not in", values, "ximaTime");
            return (Criteria) this;
        }

        public Criteria andXimaTimeBetween(Date value1, Date value2) {
            addCriterion("xima_time between", value1, value2, "ximaTime");
            return (Criteria) this;
        }

        public Criteria andXimaTimeNotBetween(Date value1, Date value2) {
            addCriterion("xima_time not between", value1, value2, "ximaTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}